<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">   
  
    <h:head> 
    	<f:facet name="first">
            <meta http-equiv="X-UA-Compatible" content="EmulateIE8" />
            <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
            <title>Locadora - Graph</title>
        </f:facet>
 
        <link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/login.css" /> 
        <link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/cadastroFilme.css" /> 
    	
    </h:head>  
      
    <h:body>
  	 	
    <p:layout style="min-width:400px;min-height:200px;" id="layout">  
    	<p:layoutUnit  position="north" size="100"  resizable="true" closable="true" collapsible="true">  
		    
    	</p:layoutUnit>  
    	   
    <p:layoutUnit header="Login" position="center" style="overflow:hidden; height:150px !important;width:350px !important;margin:0 auto !important;" >   
      <h:form style="overflow:hidden;">
       	 <p:messages />
	       <h:panelGrid columns="2" >
	       	  <p:outputLabel>Usuário</p:outputLabel>
	          <p:inputText id="nomeUser"  value="#{userBean.userTo.name}" required="true" requiredMessage="Nome Obrigatorio">
	          	<f:validateLength minimum="3" />
	          </p:inputText>
	           <h:outputLabel>Senha</h:outputLabel>
	           <p:password id="passwordUser"  required="true" requiredMessage="Ano Obrigatorio">
	          	<f:validateLength minimum="3" />
	          </p:password>
	   		
	   		
	        <p:outputLabel></p:outputLabel> 
	        <p:commandButton actionListener="#{filmeBean.saveMovie}" value="Entrar"  ajax="false"></p:commandButton>
	        </h:panelGrid>
   		</h:form> 
   		</p:layoutUnit>
   		
   		</p:layout>
    </h:body>  
</html>  